
<form name="form" method="post" action="{[$root]}{[$deleteLink]}{[$p1]}{[$p3]}">
<table>
	<tr align="center">
		<th width="40">序号</th>
		<th>图片</th>
		<th width="30%">材料</th>
		<th width="40"></th>

		<th>{[$orderby]}</th>
		<th width="40">操作</th>
	</tr>
	{[foreach name=outer key=key item=item from=$result]} {[assign var="no" value="`$key+$pager->from+1`"]}
	<tr align="center" onMouseOver="this.style.backgroundColor='#D2E4FC'" onMouseOut="this.style.backgroundColor=''">
		<td>{[$no]}</td>

		<td><a id="zoom_{[$item.id]}" href="{[$item.file]}"> <img src="{[$item.file]}" width="60" title="{[$item.name]}"
			style="border: 1px solid #666;"></a></td>
		<td><a id="material_{[$item.m.id]}" href="material.php?do=Material.view&id={[$item.m.id]}&pic={[$item.id]}">{[$item.m.name]}</a></td>

		<td>{[if $item.orderby eq '5']} <a href="javascript:void(0)"
			onclick="list_pic('{[$root]}?do=Pic.a{[$p2]}&id={[$item.id]}&material={[$item.material]}')">[设为缺省]</a> {[/if]}</td>
		<td>{[$item.orderby_x]}</td>
		<td><input type="checkbox" class="check" name="c_{[$item.id]}" value="{[$item.id]}"></td>
	</tr>
	{[/foreach]}
	<tr align="center">
		<td colspan="4"></td>
		<td>全部</td>
		<td><input type="checkbox" class="check" name="chkall" value="on" onclick="chkbox(this.form)"></td>
	</tr>
	<tr align="center">
		<td colspan="5"></td>
		<td><input type="button" name="delete" value="删除" onclick="expunge_(this.form)"></td>
	</tr>
</table>
</form>

{[include file="footer.tpl"]}

<script type="text/javascript"
	src="js/material/pic/list.js?r={[$smarty.now]}"></script>
